const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 添加计算属性
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto
}
export default getters
